//------------------------------------------------------------------------------------
#include "CMur.h"
#include "common.h"
//------------------------------------------------------------------------------------
#define NB_IMAGE				3
//------------------------------------------------------------------------------------
CMur::CMur(void) : CSprite() {
    mur=QImage(":/snake/images/mur.png");
}
//------------------------------------------------------------------------------------
void CMur::draw(QPainter *painter, int idxImage) {
	QRect reg(idxImage*CELL_WIDTH, 0, CELL_WIDTH, CELL_HEIGHT);
    CSprite::draw(painter, mur.copy(reg));
}
//------------------------------------------------------------------------------------


